/*
 * @Descripttion: pinia store
 * @Author: jhw
 * @Date: 2023-05-01 22:14:55
 * @LastEditors: jhw
 * @LastEditTime: 2023-09-09 21:52:30
 */
import { createPinia } from 'pinia';
import { App } from 'vue';
import router from '@/router';
const pinia = createPinia();

export const setupPinia = (app: App) => {
  pinia.use(({ store }) => {
    // 这里安装一些公共插件
    store.$router = router;
  });
  app.use(pinia);
};

// 引入其他模块
export * from './modules/indexedDB';
export * from './modules/routerTest';
